from celery import shared_task
from django.core.mail import send_mail

from django.conf import settings


@shared_task(name="send_email_task")
def send_email_task(subject: str, message: str, recipient_list: list[str]):
    send_mail(
        subject=subject,
        from_email=settings.EMAIL_HOST_USER,
        message=message,
        recipient_list=recipient_list,
    )
